﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;

namespace SlamCms.SharePointServices.Search
{	
	public class QueryPacket
	{
		private Query _query;
		public Query Query
		{
			get
			{
				return _query;
			}
		}

		public QueryPacket()
		{
			_query = new Query();
		}

		public override string ToString()
		{
			return ToXml().ToString();
		}

		public XElement ToXml()
		{
			return new XElement("QueryPacket", new XAttribute("Revision", "1000"), Query.ToXml());
		}
	}
}
